<?php

/**
* 这个是个人主页的模板
*/
class ModelZhuye extends GetLoad
{
	
	public function Getinformation($name_id){

		$reluse=$this->SQLquery("select * from information WHERE name_id='".$name_id."' order by information_id desc");
		
		//var_dump($reluse);
		return $reluse;

	}
	public function Getname($name_id){
				$reluse=$this->SQLquery("SELECT * from name WHERE name_id='".$name_id."'");
				//var_dump($reluse[0]);
				return $reluse[0];


	}

	public function Getneirong($neirong){
				$reluse=mb_substr($neirong,0,301,'utf-8');
					
				return $reluse."……";


	}

	
}